package org.example.adapter;

public class Mp3Player implements AudioPlayer{
    MediaAdapter mediaAdapter;
    @Override
    public void playMp3(String audioType) {
        if(audioType.equals("mp3")){
            System.out.println("play mp3");
        }else{
            mediaAdapter = new MediaAdapter(audioType);
            mediaAdapter.playMp3(audioType);
        }
    }
}
